//
//  BigDetailKindHeaderView.m
//  MarianasTrench
//
//  Created by 王晓晨 on 16/3/18.
//  Copyright © 2016年 王爵. All rights reserved.
//

#import "BigDetailKindHeaderView.h"

@implementation BigDetailKindHeaderView

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
            
        [self createSubViews];
        
    }return self;
}

- (void)createSubViews {
    
    UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 10, SCREEN_WIDTH, 40)];
    view.backgroundColor = [UIColor whiteColor];
    [self addSubview:view];
    
    self.titlelabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 10, SCREEN_WIDTH / 3, 17)];
    [view addSubview:_titlelabel];
    
    self.moreButton = [UIButton buttonWithType:UIButtonTypeCustom];
    _moreButton.frame = CGRectMake(self.frame.size.width - 70, _titlelabel.frame.origin.y, 40, 20);
    _moreButton.showsTouchWhenHighlighted = YES;
    _moreButton.titleLabel.font = [UIFont systemFontOfSize:15];
    [_moreButton setTitle:@"更多>" forState:UIControlStateNormal];
    [_moreButton setTitleColor:[UIColor lightGrayColor] forState:UIControlStateNormal];
    _moreButton.tintColor = [UIColor whiteColor];
    [view addSubview:_moreButton];
}

@end
